package com.aaa.order.feign;

import com.aaa.pojo.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: qy163-parent
 * @description:
 * @author: 闫克起2
 * @create: 2023-05-13 16:29
 **/
//@FeignClient(value = "服务提供者的名字")
@FeignClient(value = "qy163-product")
public interface ProductFeign {
    //抽象方法一定要和服务提供者中的接口方法一模一样
    @GetMapping("/product/getById/{pid}") //url+@getMapping中的内容:  http://qy163-product/product/getById/
    public Product getById(@PathVariable Integer pid);



}
